.container {
  height: calc(99vh - 72px);
  padding: 16px;
  gap: 16px;
  width: 100%;
  display: flex;
  position: relative;
  overflow: hidden;

  @media screen and (max-width: 768px) {
    .listContainer {
      display: none;
    }
  }
}

.videoPlayer {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: flex 0.3s ease;
}

.videoTable {
  .ant-table-tbody > tr > td {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }
}

.videoRow {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s;

  &:hover {
    background-color: #f5f5f5;
  }
}

.thumbnailContainer {
  position: relative;
  width: 40%;
  padding-top: 22.5%;
  /* 16:9 宽高比 */

  .thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
  }

  .durationBadge {
    position: absolute;
    right: 4px;
    bottom: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
  }
}

.detailsContainer {
  width: 60%;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  .videoName {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .uploadTime {
    color: #888;
    font-size: 12px;
  }
}

.listContainer {
  position: relative;
  flex: 0 0 30%;
  transition: transform 0.3s ease;
  z-index: 1;
  background: #fff;
  border-radius: 8px;
  overflow: auto;
  padding: 0 16px;
}

.expandButton {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 8px 16px;
}

.fileIdContainer {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}

.fileIdTag {
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.3s;

  &:hover {
    background-color: #1890ff;
    color: white;
  }
}
